﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Pages
{
    public static class CustomPageBLL
    {
        public static int GetCustomPageCount(IList<Condition> conditionArray)
        {
            return CustomPageDAL.GetCustomPageCount(conditionArray);
        }

        public static List<CustomPageEntity> GetCustomPageList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return CustomPageDAL.GetCustomPageList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static CustomPageEntity GetCustomPage(int customPageID)
        {
            return CustomPageDAL.GetCustomPage(customPageID);
        }

        public static CustomPageEntity GetCustomPageByNO(string NO)
        {
            return CustomPageDAL.GetCustomPageByNO(NO);
        }

        public static int InsertCustomPage(CustomPageEntity customPage)
        {
            return CustomPageDAL.InsertCustomPage(customPage);
        }

        public static int UpdateCustomPage(CustomPageEntity customPage)
        {
            return CustomPageDAL.UpdateCustomPage(customPage);
        }

        public static int DeleteCustomPage(int customPageID)
        {
            return CustomPageDAL.DeleteCustomPage(customPageID);
        }

        public static int SetCustomPageEnable(int customPageID)
        {
            return CustomPageDAL.SetCustomPageEnable(customPageID);
        }
    }
}
